package request

type RegisterReq struct {
	Username string `json:"username" form:"username" binding:"required" example:"testuser"`
	Password string `json:"password" form:"password" binding:"required" example:"123456"`
	Email    string `json:"email" form:"email" binding:"required,email" example:"test@example.com"`
}

type GetUserListReq struct {
}

type GetUserDetailReq struct {
	Id int64 `json:"id" form:"id" binding:"required" example:"1"`
}

type UpdateUserReq struct {
	Id       int64  `json:"id" form:"id" binding:"required" example:"1"`
	Username string `json:"username" form:"username" binding:"required" example:"newname"`
	Email    string `json:"email" form:"email" binding:"required" example:"new@example.com"`
}

type DeleteUserReq struct {
	Id int64 `json:"id" form:"id" binding:"required" example:"1"`
}
